package com.cn.springcloudwechat.model;

import java.util.Date;
import java.util.List;

public class YmAnswer {
    /**
     *回复流水id
     */
    private Long answerId;
    /**
     *1医生id2交流圈id(贴子)3文章id
     */
    private Long typeId;
    /**
     *1医生2交流圈3文章
     */
    private Integer type;
    /**
     *回复用户id
     */
    private Long answerUserId;
    /**
     *被回复用户id
     */
    private Long parentId;
    /**
     *问医生——回复提问id
     */
    private Long parentAnswerId;
    /**
     *回复内容
     */
    private String answerDes;
    /**
     *阅读状态(0未读1已读)
     */
    private Short readState;
    /**
     *创建时间(评论时间)
     */
    private Date createTime;
    /**
     *更新时间
     */
    private Date updateTime;
    /**
     *状态
     */
    private Short state;
    /**
     *跳转的url
     */
    private String url;


    // 回复集合
    private List<YmAnswer> ymAnswerList;

    public Long getParentAnswerId() {
        return parentAnswerId;
    }

    public void setParentAnswerId(Long parentAnswerId) {
        this.parentAnswerId = parentAnswerId;
    }

    public List<YmAnswer> getYmAnswerList() {
        return ymAnswerList;
    }

    public void setYmAnswerList(List<YmAnswer> ymAnswerList) {
        this.ymAnswerList = ymAnswerList;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getAnswerId() {
        return answerId;
    }

    public void setAnswerId(Long answerId) {
        this.answerId = answerId;
    }

    public Long getAnswerUserId() {
        return answerUserId;
    }

    public void setAnswerUserId(Long answerUserId) {
        this.answerUserId = answerUserId;
    }

    public Short getReadState() {
        return readState;
    }

    public void setReadState(Short readState) {
        this.readState = readState;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }

    public String getAnswerDes() {
        return answerDes;
    }

    public void setAnswerDes(String answerDes) {
        this.answerDes = answerDes == null ? null : answerDes.trim();
    }
}